function dumpToggle(element) {
   var e = element.parentNode.getElementsByTagName('ul')[0];
   if(e!=null){
       if(e.style.display == 'block'){
          e.style.display = 'none';
    	  element.parentNode.style.backgroundImage='url(".$this->getLink()."dump.inc.php?img=plus.gif)';
       }else{
          e.style.display = 'block';
    	  element.parentNode.style.backgroundImage='url(".$this->getLink()."dump.inc.php?img=minus.gif)';
       }
    }
}
function popup(input) {
	var w=800;
	var h=700;
	
	x = screen.availWidth/2-w/2;
	y = screen.availHeight/2-h/2;
	var popup = window.open('','','width='+w+',height='+h+',left='+x+',top='+y+',screenX='+x+',screenY='+y+',resizable=yes,scrollbars=yes,toolbar=yes,status=yes,menubar=yes');
	
	var content=input.parentNode;
	
	var head = '';
	var body = '';
	var html = popup.document.createElement('html');
	
  	var Script=document.getElementById('dumpJS').innerHTML;
  	var Style=document.getElementById('dumpStyle').innerHTML;
  	var StylePrint=document.getElementById('dumpStylePrint').innerHTML;
  	
  	head+='<script type=\'text/javascript\' charset=\'utf-8\' id=\'dumpJS\'>';
  	head+=Script;
  	head+='</sc'+'ript><style type=\'text/css\' media=\'screen\' id=\'dumpStyle\'>';
  	head+=Style;
  	head+='</style><style type=\'text/css\' media=\'print\' id=\'dumpStylePrint\'>';
  	head+=StylePrint;
  	head+='</style>';
 	
 	body+= '<ul class=\'dump string\'><li class=\'hasSub\'>';
 	body+= content.innerHTML;
 	body+= '</li></ul>';
 	
 	html.innerHTML+=head;
 	html.innerHTML+=body;
 	
 	var newContent = html.innerHTML;
 	
 	popup.document.write(newContent);
 	popup.document.close();
}